package com.pacai.homework;

/**
 * @author pacai
 * @version 1.0
 */
public class HomeWork06 {

}


class Cale{
    private int num1;
    private int num2;

    public int getNum1() {
        return num1;
    }

    public void setNum1(int num1) {
        this.num1 = num1;
    }

    public Cale(int num1, int num2){
        this.num1 = num1;
        this.num2 = num2;
    }

    public int cal01(){
        return num1 * num2;
    }

    public int cal02(){
        int dev = 0;
        while(true){
            try {
                dev = num1 / num2;
                break;
            } catch (ArithmeticException e) {
                System.out.println("输入错误");
            }
        }
        return dev;
    }

    public int cla03(){
        return num1 + num2;
    }

    public int cal04(){
        return num1 - num2;
    }
}